package com.byb.server.service.dto;


import com.byb.server.domain.WcClainParty;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the WcClaimCases entity.
 */
public class WcClaimCasesDTO implements Serializable {

    private Long id;

    private String timePoint;

    private String nodeInfo;

    private Long wcProductId;

    private String wcProductName;

    private WcClainParty wcClainParty;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTimePoint() {
        return timePoint;
    }

    public void setTimePoint(String timePoint) {
        this.timePoint = timePoint;
    }

    public String getNodeInfo() {
        return nodeInfo;
    }

    public void setNodeInfo(String nodeInfo) {
        this.nodeInfo = nodeInfo;
    }

    public Long getWcProductId() {
        return wcProductId;
    }

    public void setWcProductId(Long wcProductId) {
        this.wcProductId = wcProductId;
    }

    public String getWcProductName() {
        return wcProductName;
    }

    public void setWcProductName(String wcProductName) {
        this.wcProductName = wcProductName;
    }

    public WcClainParty getWcClainParty() {
        return wcClainParty;
    }

    public void setWcClainParty(WcClainParty wcClainParty) {
        this.wcClainParty = wcClainParty;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WcClaimCasesDTO wcClaimCasesDTO = (WcClaimCasesDTO) o;
        if(wcClaimCasesDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), wcClaimCasesDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "WcClaimCasesDTO{" +
            "id=" + getId() +
            ", timePoint='" + getTimePoint() + "'" +
            ", nodeInfo='" + getNodeInfo() + "'" +
            "}";
    }
}
